package com.example.xd.commen.annotation;

import android.util.Log;

/**
 * @auther XuDan on 2019/7/2.
 */
public class OrangeProcess {
    public static void getOrange(String name) {
        try {
            Class<?> clazz = Class.forName(name);
            if (clazz.isAnnotationPresent(Orange.class)) {
                Orange annotation = clazz.getAnnotation(Orange.class);
                Log.i("xd-----", annotation.getNames() + "---" + annotation.getValue());
            }
        } catch (ClassNotFoundException e) {
            e.printStackTrace();
        }


    }
}
